<template>
  <div class="action">
    <button @click="search">查询</button>
    <hr>
    <button @click="aduit">审批</button>
  </div>
</template>

<script>
import axios from '../../utils/request'
export default {
  name: 'ActionRightTest',
  methods: {
    search () {
      // alert('search')
      axios({
        method: 'get',
        url: '/api/right/test/search/check'
      }).then(jsondata => {
        console.log(jsondata.message)
        if (jsondata.code === '200') {
          this.$message({
            message: jsondata.message,
            type: 'success'
          })
        }
      })
    },
    aduit () {
      // alert('audit')
      axios({
        method: 'get',
        url: '/api/right/test/audit/check'
      }).then(jsondata => {
        if (jsondata.code === '200') {
          this.$message({
            message: jsondata.message,
            type: 'success'
          })
        }
      })
    }
  }
}
</script>

<style scoped>

</style>
